Skip to content
This repository has been archived by the owner on Sep 1, 2020. It is now read-only.

Latest commit

 

History

History
10 lines (7 loc) · 246 Bytes

3.2.5 - Coroutine/Channel->close.md

File metadata and controls

10 lines (7 loc) · 246 Bytes

Coroutine\Channel->close

关闭通道。并唤醒所有等待读写的协程。

funtion Coroutine\Channel->close();
  • 唤醒所有生产者协程,push方法返回false
  • 唤醒所有消费者协程,pop方法返回false